<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    body {
      width: 300px;
      padding: 10px;
    }
    #translateBtn {
      width: 100%;
      padding: 8px;
      background: #4285f4;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    #translateBtn:hover {
      background: #3367d6;
    }
    #result {
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      display: none;
    }
    .word {
      font-weight: bold;
      margin-bottom: 5px;
    }
    .translation {
      color: #666;
    }
  </style>
</head>
<body>
  <button id="translateBtn">翻译选中的文本</button>
  <div id="result">
    <div class="word"></div>
    <div class="translation"></div>
  </div>
  <script src="popup.js"></script>
</body>
</html> 